/**
 * @description: Request result set
 */
export enum ResultEnum {
  SUCCESS = 1,
  TIMEOUT = 401,
}

/**
 * @description: request method
 */
export enum RequestEnum {
  GET = 'GET',
  POST = 'POST',
  PUT = 'PUT',
  DELETE = 'DELETE',
}

/**
 * @description:  contentTyp
 */
export enum ContentTypeEnum {
  // json
  JSON = 'application/json;charset=UTF-8',
  // form-data qs
  FORM_URLENCODED = 'application/x-www-form-urlencoded;charset=UTF-8',
  // form-data  upload
  FORM_DATA = 'multipart/form-data;charset=UTF-8',
}

/**
 * 请求header
 * @description:  contentTyp
 */
export enum ConfigEnum {
  // TOKEN
  TOKEN = 'Authorization',
  // TIMESTAMP
  TIMESTAMP = 'X-TIMESTAMP',
  // Sign
  Sign = 'X-Sign',
  // 租户id
  TENANT_ID = 'x-tenant-id',
  // 终端类型
  TERMINAL = 'x-terminal',
  LOGIN_TYPE = 'login-type',
  ORIGIN_ENDPOINT = 'origin-endpoint',
  // 版本
  VERSION = 'X-Version',
  // 低代码应用ID
  X_LOW_APP_ID = 'X-Low-App-ID',
  AUTHENTICATION_SCHEME = 'Bearer',
  // 登录id, 如果用户未登录就传一个<=16位随机字符串, 登录了就使用登录返回的loginId
  LOGIN_ID = 'X-LoginId'
}

export enum ErrorCodeEnum {
  TENANT_NOT_EXIST = 1000
}